package com.example.basic.service.impl;

import com.example.basic.dao.TodoMapper;
import com.example.basic.domain.Todo;
import com.example.basic.service.TodoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mjw
 * @date 2023/3/31
 */
@Service
public class TodoServiceImpl implements TodoService {

    private final TodoMapper todoMapper;

    public TodoServiceImpl(TodoMapper todoMapper) {
        this.todoMapper = todoMapper;
    }

    @Override
    public List<Todo> selectTodo(Todo todo) {
        String testFlag = "1";
        return todoMapper.selectTodo(testFlag, todo);
    }
}
